#include<iostream> 
#include"QuickSort.h"
#include<time.h>
#include<cmath>
#include<vector>
#include<fstream>
using namespace std;

int main(int args, char* argv[])
{
   std::vector<int> a = new vector<int>;
   std::vector<int> b = new vector<int>;
   srand((unsigned)time(NULL)); 
   int start1,end1,start2,end2
   double time1,time2; 
   ifstream infile;
   infile.open("data.txt");
   
   int num,i=0;
   while(infile>>num) 
   {
        a[i]=num;
        b[i]=num;
        i++;
   }
   infile.close();
   
   start1=clock();
   quicksort1(a);
   end1=clock();
   time1=(double)(end1-start1) / CLOCKS_PER_SEC; 
   cout<<time1<<"seconds"<<endl;
   for(int i=0; i<a.size(); i++)
	    cout<<a[i];
   cout<<endl;
   
   start2=clock();
   quicksort2(b);
   end2=clock();
   time2=(double)(end2-start2) / CLOCKS_PER_SEC; 
   cout<<time2<<"seconds"<<endl;
   for(int i=0; i<b.size(); i++)
	    cout<<b[i];
   cout<<endl;
   
}


